<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>UCARPP: includes/lex-tools.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">UCARPP
   &#160;<span id="projectnumber">1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('lex-tools_8h.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">includes/lex-tools.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="lex-tools_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef __LEXMETHODS_H__</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define __LEXMETHODS_H__</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;stdbool.h&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;stdio.h&gt;</span>
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="comment">// ************************ STRUCTS ********************</span>
<a name="l00008"></a>00008 
<a name="l00009"></a><a class="code" href="unionLexVal.html">00009</a> <span class="keyword">typedef</span> <span class="keyword">union </span><a class="code" href="unionLexVal.html">LexVal</a> {
<a name="l00010"></a><a class="code" href="unionLexVal.html#a72d9cca5fd92e31398a85cf9746845eb">00010</a>         <span class="keywordtype">float</span> <a class="code" href="unionLexVal.html#a72d9cca5fd92e31398a85cf9746845eb">fval</a>;
<a name="l00011"></a><a class="code" href="unionLexVal.html#ada2bce94a97cb423e49c9fcf1180f6a0">00011</a>         <span class="keywordtype">int</span> <a class="code" href="unionLexVal.html#ada2bce94a97cb423e49c9fcf1180f6a0">ival</a>;
<a name="l00012"></a><a class="code" href="unionLexVal.html#a1fa4b604a920455704cb2cf449a22cb6">00012</a>         <span class="keywordtype">char</span>* <a class="code" href="unionLexVal.html#a1fa4b604a920455704cb2cf449a22cb6">sval</a>;
<a name="l00013"></a>00013 } <a class="code" href="lex-tools_8h.html#ae98d6c3b46596ad86925c88377fc070c">LexVal</a>;
<a name="l00014"></a>00014 
<a name="l00015"></a>00015 <span class="comment">// *********************** VARIABILI ****************************</span>
<a name="l00016"></a>00016 
<a name="l00017"></a><a class="code" href="lex-tools_8h.html#aa01ad102a281d6a6641139ec099227db">00017</a> <a class="code" href="unionLexVal.html">LexVal</a> <a class="code" href="lex-tools_8h.html#aa01ad102a281d6a6641139ec099227db">lexval</a>;
<a name="l00018"></a>00018 
<a name="l00023"></a>00023 <span class="keywordtype">char</span>* <a class="code" href="lex-tools_8h.html#afd14ea2a994fb780ef91d2b1511425dc">createString</a>(<span class="keywordtype">char</span>* strToStore);
<a name="l00024"></a>00024 <span class="comment">/* alloca in memoria un nuovo intero in modo da poterlo inserire in una ValueDispatcher struct</span>
<a name="l00025"></a>00025 <span class="comment"> intToStore: indica l&#39;intero che si vuole inserire</span>
<a name="l00026"></a>00026 <span class="comment"> */</span>
<a name="l00027"></a>00027 <span class="keywordtype">int</span>* <a class="code" href="lex-tools_8h.html#a66b571aa0943f0aece7c9ee75819e9e2">createInteger</a>(<span class="keywordtype">int</span> intToStore);
<a name="l00028"></a>00028 <span class="comment">/* alloca in memoria un nuovo boolean in modo da poterlo inserire in una ValueDispatcher struct</span>
<a name="l00029"></a>00029 <span class="comment"> booleanToStore: indica un carattere. se vale &#39;T&#39; o &#39;t&#39; allora il risultato sarà TRUE, altrimenti sarà FALSE</span>
<a name="l00030"></a>00030 <span class="comment"> */</span>
<a name="l00031"></a>00031 <span class="keywordtype">bool</span>* <a class="code" href="lex-tools_8h.html#a4f663e4880987066d18872d90a234db6">createBoolean</a>(<span class="keywordtype">char</span> booleanToStore);
<a name="l00032"></a>00032 
<a name="l00037"></a>00037 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span>* <a class="code" href="lex-tools_8h.html#a425d908ab3f63715cf893469029f27a3">createUnsignedLong</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> unsignedlongToStore);
<a name="l00038"></a>00038 
<a name="l00039"></a>00039 
<a name="l00040"></a>00040 <span class="keywordtype">float</span>* <a class="code" href="lex-tools_8h.html#ab6eeb7c22fed91baca44c4d0ad0ad4c6">createFloat</a>(<span class="keywordtype">float</span> floatToStore);
<a name="l00041"></a>00041 
<a name="l00042"></a>00042 <span class="preprocessor">#endif</span>
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="lex-tools_8h.html">lex-tools.h</a>      </li>

    <li class="footer">Generated on Thu Jun 27 2013 11:34:36 for UCARPP by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
